Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632903 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/208 - Pig Dice Game

assets/ cody/swapnilsparsh/30DaysOfJavaScript/208 - Pig Dice Game/assets/
10 Items
  • hold.png
  • 4.png
  • 1.png
  • dice2.png
  • dice1.png
  • 3.png
  • 6.png
  • 2.png
  • README.md cody/swapnilsparsh/30DaysOfJavaScript/208 - Pig Dice Game/README.md
    175 Views
    0 Comments
    # Pig Game (JavaScript)

    Welcome to the Pig Game! This simple web-based game allows two players to take turns rolling dice and competing for victory. It's a fun and interactive way to challenge your luck and strategy as you aim to reach the target score.

    ![Screenshot 2023-10-08 221001](https://github.com/just-ctrlC-ctrlV/30DaysOfJavaScript-me/assets/109028862/79fe44eb-f37e-4664-b98b-8fa593065975)

    ## Table of Contents

    jss.js cody/swapnilsparsh/30DaysOfJavaScript/208 - Pig Dice Game/jss.js
    170 Views
    0 Comments
    `use strict`;

    const diceFaces = document.getElementById("diceFaces");
    const newGame = document.getElementById("newGame");
    const rollDice = document.getElementById("rollDice");
    const hold = document.getElementById("hold");

    const player1 = {
    style.css cody/swapnilsparsh/30DaysOfJavaScript/208 - Pig Dice Game/style.css
    104 Views
    0 Comments
    @import url("https://fonts.googleapis.com/css2?family=Aboreto&family=DynaPuff&display=swap");
    html {
    box-sizing: border-box;
    }

    body {
    margin: 0px 0px 0px 0px;
    height: 100vh;
    index.html cody/swapnilsparsh/30DaysOfJavaScript/208 - Pig Dice Game/index.html
    282 Views
    0 Comments
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Pig Game</title>
    <link rel="stylesheet" href="style.css" />